package com.zhu.instructions.constants;

import com.zhu.instructions.base.NoOperandsInstruction;
import com.zhu.rtda.Frame;

/**
 * aconst_null: 将 null 引用压入操作数栈
 *
 * 格式：aconst_null
 * 操作数：无
 * 栈变化：... → ..., null
 */
public class ACONST_NULL extends NoOperandsInstruction {
    @Override
    public void execute(Frame frame) {
        frame.getOperandStack().pushRef(null);
    }
}
